﻿ @*
 * ---------------------------------------------------
 * 作者: MTQ 
 * 日期： 2021/5/6 12:46:21 
 * ---------------------------------------------------
 *@
    
   @{                                          
       Layout = "~/Views/Shared/_Layout_lay_admin.cshtml";                                      
    }                                         
                                             
    <style>                                         
        body {                                     
            background-color: #ffffff;                                 
         }                                    
    </style>                                        
                                             
    <div class="layui-form layuimini-form">                                         
      <div class="layui-form-item  hidden ">                                       
             <label class="layui-form-label"  formeld_key="User_Id" txt='User_Id'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_Id" placeholder=""  value="@Model.User_Id" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_Code" txt='User_Code'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_Code" placeholder=""  value="@Model.User_Code" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_UserName" txt='User_UserName'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_UserName" placeholder=""  value="@Model.User_UserName" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_Password" txt='User_Password'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_Password" placeholder=""  value="@Model.User_Password" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_RealName" txt='User_RealName'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_RealName" placeholder=""  value="@Model.User_RealName" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_IDCard" txt='User_IDCard'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_IDCard" placeholder=""  value="@Model.User_IDCard" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_Sex" txt='User_Sex'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_Sex" placeholder=""  value="@Model.User_Sex" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_Email" txt='User_Email'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_Email" placeholder=""  value="@Model.User_Email" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_PhoneNumber" txt='User_PhoneNumber'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_PhoneNumber" placeholder=""  value="@Model.User_PhoneNumber" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_Status" txt='User_Status'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_Status" placeholder=""  value="@Model.User_Status" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="UserRoleRemark" txt='UserRoleRemark'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="UserRoleRemark" placeholder=""  value="@Model.UserRoleRemark" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="CreateDateTime" txt='CreateDateTime'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="CreateDateTime" placeholder=""  value="@Model.CreateDateTime" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="CreateUserId" txt='CreateUserId'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="CreateUserId" placeholder=""  value="@Model.CreateUserId" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="CreateUserName" txt='CreateUserName'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="CreateUserName" placeholder=""  value="@Model.CreateUserName" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_Available" txt='User_Available'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_Available" placeholder=""  value="@Model.User_Available" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_Remark" txt='User_Remark'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_Remark" placeholder=""  value="@Model.User_Remark" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="Organization_Id" txt='Organization_Id'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="Organization_Id" placeholder=""  value="@Model.Organization_Id" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="Department_Id" txt='Department_Id'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="Department_Id" placeholder=""  value="@Model.Department_Id" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item">                                        
            <div class="layui-input-block">                                 
                  <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>                            
              </div>                                
       </div>                                       
    </div>                                         
                                             
      <script>                                                     
          layui.use(['form'], function () {                        
              var form = layui.form,                               
                  layer = layui.layer,                             
                  $ = layui.$;                                     
                                                                   
              //监听提交                                           
              form.on('submit(saveBtn)', function (data) {         
                                                                   
                  $.ajax({                                         
                      url: '/Base_UserInfo/Create',                       
                      type: 'post',                                
                      dataType: 'text',                            
                      data: data.field,                            
                      success: function (resp) {                   
                          var json = eval('(' + resp + ')');       
                          var index = layer.alert(json.Message, function () {      
                              // 关闭弹出层      
                              layer.close(index);      
                              parent.reloadTable();      
                              var iframeIndex = parent.layer.getFrameIndex(window.name);      
                              parent.layer.close(iframeIndex);       
                          });                                        
                      },                                             
                      error: function (resp) {                       
                          layer.alert("对不起出错了");             
                      }                                              
                  });                                                
                                                                     
                                                                     
                  return false;                                      
              });                                                    
          showFormelDtxt(base_userinfo_entity);                             
           });                                                       
      </script>                                                      
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             

